package org.sample.junit4.ex9;

import java.util.concurrent.atomic.AtomicInteger;

public class StatefulCounter {
    private final AtomicInteger counter = new AtomicInteger();

    public int inc() {
        return counter.incrementAndGet();
    }

    public int get() {
        return counter.get();
    }
}
